/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						       combat_context_script.h

	$Header: /game/combat_context_script.h $

	$NoKeywords: $

 ************************************************************************/

#if !defined( COMBAT_CONTEXT_SCRIPT_H_INCLUDED )
#define COMBAT_CONTEXT_SCRIPT_H_INCLUDED

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "combat_context.h"

class t_combat_context_script : public t_combat_context
{
public:
	t_combat_context_script( t_creature_array*							attacker, 
							 t_creature_array*							defender,
							 t_adv_map_point const&						location,
							 t_town*									town,
							 t_ownable_garrisonable_adv_object const*	garrison );

	virtual bool const *			get_are_real_armies() const;
	t_combat_result					get_result() const;
	virtual t_combat_context_type	get_type() const;
	virtual void					on_combat_end( t_combat_result result );
	virtual bool					read( std::streambuf& stream, 
								   	      t_adventure_map& adventure_map );
	virtual bool					write( std::streambuf& stream ) const;
private:
	t_combat_result m_result;
};

t_combat_result t_combat_context_script::get_result() const
{
	return m_result;
}
#endif // COMBAT_CONTEXT_SCRIPT_H_INCLUDED
